﻿using netcore_comm.SqlSugar;
using netcore_service.Dto;
using netcore_service.Model;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace netcore_service.IRepository
{
    public interface ISchoolRepository : ISqlSugarRepository<SchoolInfo, netData>
    {
        Task<int> AddCollection(Collection data);
        Task<int> cancelCollect(string id, string uid);
        Task<List<SchoolInfoDto>> getCollection(string uid);
        Task<bool> getCollectionbyId(string schoolId, string uid);
        int getCollectionbySchool(string schoolId);
        List<School_Image> GetImgList(string id);
        Task<SchoolInfo> getSchoolIdByOpenid(string uid);
        Task saveImage(SchoolInfo schoolInfo);
        Task<SchoolInfoDto> SchoolById(string value);
        Task<SchoolDetailDto> SchoolDetail(string id, string type);
        Task<(dynamic,int)> SchoolInfoList(SchoolInfoPo po,List<string> school);
        Task<List<SchoolInfoDtoM>> SchoolList(SchoolInfoPo po);
        Task<List<SchoolInfoDto>> SchoolListByIds(List<string> ids);
        //Task<List<SchoolInfo>> SchoolList();
    }
}
